Data placement based on data retention in a tiered storage device system

ABSTRACT

A method for managing flash memory is provided. The method includes determining at least one property of a data and determining to which type of a plurality of types of flash memory to write the data, based on the at least one property of the data. The plurality of types of flash memory includes at least two types of flash memory having differing numbers of bits per cell. The method includes writing the data to a flash memory of the determined type. A nonvolatile memory manager and a system are provided.

BACKGROUND

Flash memory is a nonvolatile memory that was developed fromelectrically erasable programmable read-only memory (EEPROM). NAND flashmemory and NOR flash memory are available. NAND flash memory can bewritten or read in blocks or pages. Originally, each flash memory cellhad one bit per cell. Now, flash memory is available in single levelcell (SLC) and multilevel cell (MLC) types. The single level cell typeof flash memory has one bit per cell (as on the original flash memory),and the multilevel cell flash memory types have more than one bit percell. Generally, multilevel cell flash memory operates with each cellcapable of multiple ranges of electrons trapped on a floating gate,multiple programming voltages, and multiple threshold voltages appliedto a controlling gate within the flash memory cell. The number of bitsper cell is a function of the number of ranges of programming voltagesand threshold voltages, and corresponding numbers of electrons on thefloating gate. One type of multilevel cell flash memory is available isreferred to as triple level cell (TLC) flash memory, which has threebits per cell. Further types of multilevel cell flash memory may bedeveloped.

Flash memory is attractive as a storage media due to the access speeds.The familiar USB (universal serial bus) flash drive is an example ofportable storage that makes use of flash memory. Solid-state drives,such as a USB flash drive, usually use the NAND type of flash memory.Trade-offs in cost per bit, bit density per unit of area in anintegrated circuit, error rates, long-term storage reliability, readdisturb rates, read wear rates and write wear rates, among otherconsiderations, affect the choice of which type of flash memory to usein a given application. Generally, a single type of flash memory isselected for use in a system, e.g., a thumb drive, a solid-state drive,or a combination hard drive and solid-state storage, and the system thenhas the advantages and disadvantages of that type of flash memory. It iswithin this context that the embodiments arise.

SUMMARY

In some embodiments, a method for managing flash memory is provided. Themethod includes determining at least one property of a data anddetermining to which type of a plurality of types of flash memory towrite the data, based on the at least one property of the data. Theplurality of types of flash memory includes at least two types of flashmemory having differing numbers of bits per cell. The method includeswriting the data to a flash memory of the determined type, wherein atleast one action of the method is performed by a processor.

In some embodiments, a flash manager is provided. The flash managerincludes a mapping unit, configured to place incoming data into one of aplurality of types of flash memory in accordance with one or more firstproperties of the incoming data. The mapping unit is configured torelocate data into one of the plurality of types of flash memory inaccordance with one or more second properties of the data. The one ormore first properties of the data are observable upon arrival of theincoming data, and the one or more second properties of the data aredetermined over time after arrival of the data. The plurality of typesof flash memory includes a first type of flash memory having at leastone bit per cell and a second type of flash memory having a greaternumber of bits per cell than the first type.

In some embodiments, a flash storage device is provided. The deviceincludes a flash memory having at least a flash memory of a first typeand a flash memory of a second type, wherein the first type of flashmemory has a differing number of bits per cell from the second type offlash memory. The device includes a flash manager, having at least oneprocessor configured to perform actions that include writing a firstdata to the flash memory of the first type responsive to the first datahaving a first property, and writing a second data to the flash memoryof the second type responsive to the second data having a secondproperty.

Other aspects and advantages of the embodiments will become apparentfrom the following detailed description taken in conjunction with theaccompanying drawings which illustrate, by way of example, theprinciples of the described embodiments.

BRIEF DESCRIPTION OF THE DRAWINGS

The described embodiments and the advantages thereof may best beunderstood by reference to the following description taken inconjunction with the accompanying drawings. These drawings in no waylimit any changes in form and detail that may be made to the describedembodiments by one skilled in the art without departing from the spiritand scope of the described embodiments.

FIG. 1 is a system diagram showing an enterprise computing system, withprocessing resources, networking resources and storage resources,including flash storage, in accordance with some embodiments.

FIG. 2 is a system diagram showing an embodiment of the flash storage ofFIG. 1, including a flash manager and multiple types of flash memory, inaccordance with some embodiments.

FIG. 3 is a system diagram showing a tracking unit and a mapping unit inan embodiment of the flash manager of FIG. 2, in accordance with someembodiments.

FIG. 4A is a flow diagram showing a method for managing flash memory,which can be practiced on or by embodiments of the enterprise computingsystem, the flash storage, and the flash manager of FIGS. 1-3, inaccordance with some embodiments.

FIG. 4B is a flow diagram of a method for managing flash memory,applying a read rate threshold and a read count threshold, in accordancewith some embodiments.

FIG. 4C is a flow diagram of a method for managing flash memory,applying a write rate threshold and a write count threshold, inaccordance with some embodiments.

FIG. 4D is a flow diagram of a method for managing flash memory,applying an error count threshold and an error rate threshold, inaccordance with some embodiments.

FIG. 4E is a flow diagram of a method for managing flash memory,applying thresholds relating to properties of data and memory, inaccordance with some embodiments.

FIG. 4F is a flow diagram of a method for managing flash memory,applying differing error correction thresholds for data verification andlong-term reads, in accordance with some embodiments.

FIG. 5 is an illustration showing an exemplary computing device whichmay implement the embodiments described herein, in accordance with someembodiments.

DETAILED DESCRIPTION

Combining two or more types of flash memory into a device or system isone way to increase capacity and reduce costs. Controlling dataplacement into each of the two or more types of flash memory, based ondata properties, supports selection of a type of flash memory for thedata placement depending on how the data is used in the system.Typically, in a comparison among single level cell, multilevel cell, andthree bits per cell types of flash memory (three bits per cell flashbeing a type of multilevel cell flash that may be referred to as atriple level cell), the single level cell type of flash memory has thelowest density, the highest cost per bit, the longest data retentiontime, the fastest average write time, the lowest read error rate, thelowest susceptibility to read disturb and program disturb (writedisturb) events and errors, the lowest read wear rate and the lowestwrite wear rate. Higher numbers of bits per cell reverse these trends,so that the three bits per cell type of flash memory has higher density,lower cost per bit, lower data retention time, slower average writetime, higher read error rate, higher susceptibility to read disturb,higher susceptibility to program disturb, higher read wear rate, andhigher write wear rate, as compared to the single level cell type offlash memory. The two bits per cell type of multilevel cell flash memoryhas data characteristics that reside between the single level cell andthe triple level cell types of flash memory. Quad level cell (QLC) flashmemory, having four bits per cell, or variants of flash with higher bitdensity per cell, i.e., greater than four bits per cell, may continuethese trends. Such characteristics of types of flash memory, andparticularly the values of various parameters relating to thesecharacteristics, may vary among families of flash memory and amongmanufacturers, so that the specifics will be case dependent. Embodimentsof a flash storage, a flash manager, and a related method for managingflash memory, determine placement of data into types of flash memory, inaccordance with properties of the data and various policies. By makingplacement of the data dependent on properties of the data, theseembodiments support use of multiple types of flash memory in a system.It should be appreciated that in some embodiments the data propertiesmay be characterized as non-performance related properties of thedifferent types of flash memory, i.e., properties not related to accesstimes for the different flash memory types.

As will be discussed in more detail below, some embodiments place datain one type or another of flash memory according to data properties thatare observable upon arrival of the data. Some embodiments relocate datato one type or another of flash memory according to data properties thatare observable over time after arrival of the data. It should beappreciated that these aspects can be combined in some embodiments byplacing data initially and then relocating data over time, asapplicable. Properties of the data can be accounted for in metadata,which can be derived initially and/or derived from tracking the data.Policies affecting data placement in accordance with properties of thedata can be embedded in memory or a storage unit associated with adevice for the embodiments described herein. Various mechanisms, aspectsand actions are further described below with reference to FIGS. 1-5.

FIG. 1 is a system diagram showing an enterprise computing system 102,with processing resources 104, networking resources 106 and storageresources 108, including flash storage 128, in accordance with anembodiment of the present disclosure. A flash manager 130 and flashmemory 132 are included in the flash storage 128. The enterprisecomputing system 102 illustrates one environment suitable for deploymentof the flash storage 128, although the flash storage 128 could be usedin other computing systems or devices, larger or smaller, or invariations of the enterprise computing system 102, with fewer oradditional resources. The enterprise computing system 102 is coupled toa network 140, such as the global communication network known as theInternet, in order to provide or make use of services. For example, theenterprise computing system 102 could provide cloud services, physicalcomputing resources, or virtual computing services.

In the enterprise computing system 102, various resources are arrangedand managed by various managers. A processing manager 110 manages theprocessing resources 104, which include processors 116 and random-accessmemory (RAM) 118. Other types of processing resources could beintegrated, as the embodiment of FIG. 1 is one example and not meant tobe limiting. A networking manager 112 manages the networking resources106, which include routers 120, switches 122, and servers 124. Othertypes of networking resources could be included. A storage manager 114manages storage resources 108, which include hard drives 126 and flashstorage 128, as well as other types of storage resources. In someembodiments, the flash storage 128 completely replaces the hard drives126. The enterprise computing system 102 can provide or allocate thevarious resources as physical computing resources, or in variations, asvirtual computing resources supported by physical computing resources.For example, the various resources could be implemented using one ormore servers executing software. Files or data objects, or other formsof data, are stored in the storage resources 108. In one embodiment, thehard drives 126 serve as archival storage, and the flash storage 128serves as active storage. In some embodiments, the flash storage 128serves at least in part as a cache memory. The flash manager 130determines in which type of flash memory, in the flash memory 132, eachportion of data should be stored. In some embodiments, the flash manager130 determines whether, when, and into which type of flash memory, inthe flash memory 132, some portions of data should be relocated.

FIG. 2 is a system diagram showing an embodiment of the flash storage128 of FIG. 1, including a flash manager 130 and multiple types of flashmemory 132. In this example, the flash memory 132 includes a singlelevel cell type of flash memory 210, a multilevel cell type of flashmemory 212, and a triple level cell type of flash memory 214. In furtherembodiments, the flash memory 132 includes two of these types of flashmemory, one of these types of flash memory and one other type of flashmemory, two other types of flash memory, or three or more types of flashmemory, and so on. Characteristics of each of the types of flash memoryinfluence the policies upon which the decisions of the flash manager 130are based.

Still referring to FIG. 2, in order to perform various tasks, the flashmanager 130 has a tracking unit 206, a mapping unit 208, a garbagecollector 202 and a wear level agent 204. In further embodiments, theflash manager 130 has fewer or additional units therein. The mappingunit 208 determines where in the flash memory 132, i.e., into which ofthe types of flash memory 210, 212, 214, to write the data that arrivesfrom various locations within the enterprise computing system 102, e.g.,from the processing resources 104 and/or the networking resources 106.The tracking unit 206 tracks operations on the data in the flash memory132, such as read operations, write operations and/or error corrections.In addition, tracking unit 206 provides information about theseoperations to the mapping unit, the garbage collector 202 and/or thewear level agent 204, for use in decisions thereof.

The garbage collector 202 of FIG. 2, reclaims blocks of flash memory, incoordination with the mapping unit 208. In some embodiments, the garbagecollector 202 cooperates with the tracking unit 206. For example, ablock in one of the types of flash memory 210, 212, 214 may have a lownumber of valid pages, e.g., below a specified threshold value. Thegarbage collector 202 moves the valid pages from the block beingreclaimed, into one of the types of flash memory 210, 212, 214 incooperation with the mapping unit 208. The valid pages are thusrelocated, as part of the garbage collection process in this embodiment.The mapping unit 208, in this example, determines which of the types offlash memory 210, 212, 214 to move these valid pages to, based on one ormore properties of the data. The relevant properties of the data couldinclude one or more parameters as tracked by the tracking unit 206 sincethe arrival of the data into the flash memory 132. Once these validpages are moved, e.g., by copying the data of these pages to thedetermined type of flash memory 210, 212, 214, verifying that the datareads correctly in the new location(s), and releasing the originallocations of the valid pages, the block is reclaimed by the garbagecollectors 202 and is available for new use. The reclaimed block offlash memory can then be erased and reused. In some embodiments, thegarbage collector 202 and the mapping unit 208 are combined into oneunit, i.e., integrated.

Continuing with FIG. 2, the wear level agent 204 produces even wear inblocks of flash memory, in coordination with the mapping unit 208. Insome embodiments, the wear level agent 204 cooperates with the trackingunit 206. For example, the wear level agent 204 could determine thatsome pages in a block, or some blocks, in one of the types of flashmemory 210, 212, 214 have been read a total number of times that exceedsa read count threshold value, or are being read at a rate that exceeds aread rate threshold value. An excessive number of reads may be likely toincrease the likelihood of errors in the data itself, or may cause readdisturb errors in data adjacent to the data. It should be appreciatedthat an excessive read rate may physically heat up the data cells on theintegrated circuit, which can disturb the data, i.e., cause errors. Thewear level agent 204 determines that some pages in a block, or someblocks, have produced a total number of errors during reads that exceedsa read error count threshold value, or are producing errors at a ratethat exceeds a read error rate threshold value, e.g. are producing anerror count over a specified period of time that implies a read errorrate exceeding a read error rate threshold value. These pages, or theseblocks, would be considered by the wear level agent 204 to haveexcessive wear. The wear level agent 204 then moves these pages orblocks, with excessive wear, from current locations in the flash memory132 into one of the types of flash memory 210, 212, 214 in cooperationwith the mapping unit 208. The pages or blocks are thus relocated, aspart of the wear leveling process in this embodiment. The mapping unit208, in this example, determines which of the types of flash memory 210,212, 214 to move these pages or blocks to, based on one or moreproperties of the data. The relevant properties of the data couldinclude one or more parameters as tracked by the tracking unit 206 sincethe arrival of the data into the flash memory 132. Once these pages orblocks are moved, e.g., by copying the data of these pages or blocks tothe determined type of flash memory 210, 212, 214, verifying that thedata reads correctly in the new location(s), and releasing the originallocations of the pages or blocks, the wear level agent 204 can monitorthe data in the new location and monitor new data in the earlierlocation.

As a further example, the wear level agent 204 of FIG. 2 could determinethat some pages in a block, or some blocks, in one of the types of flashmemory 210, 212, 214 have been written a total number of times thatexceeds a write count threshold value, or are being written at a ratethat exceeds a write rate threshold value. An excessive number of writesmay be likely to increase the likelihood of errors in the data itself,or may cause write disturb errors in data adjacent to the data, i.e., incells adjacent to the cells being written. An excessive write rate mayphysically heat up the data cells on the integrated circuit, which candisturb the data, i.e., cause errors. The wear level agent 204 coulddetermine that some pages in a block, or some blocks, have produced atotal number of errors during writes that exceeds a write error countthreshold value, or are producing errors at a rate that exceeds a writeerror rate threshold value, e.g. are producing an error count over aspecified period of time that implies a write error rate exceeding awrite error rate threshold value. These pages, or these blocks, would beconsidered by the wear level agent 204 to have excessive wear. The wearlevel agent 204 then moves these pages or blocks, with excessive wear,from current locations in the flash memory 132 into one of the types offlash memory 210, 212, 214 in cooperation with the mapping unit 208. Thepages or blocks are thus relocated, as part of the wear leveling processin this embodiment. The mapping unit 208, in this example, determineswhich of the types of flash memory 210, 212, 214 to move these pages orblocks to, based on one or more properties of the data. The relevantproperties of the data could include one or more parameters as trackedby the tracking unit 206 since the arrival of the data into the flashmemory 132. Once these pages or blocks are moved, e.g., by copying thedata of these pages or blocks to the determined type of flash memory210, 212, 214, verifying that the data reads correctly in the newlocation(s), and releasing the original locations of the pages orblocks, the wear level agent 204 can monitor the data in the newlocation and monitor new data in the earlier location.

It should be appreciated that the wear level agent 204 of FIG. 2 canapply thresholds specific to various types of flash memory. For example,flash memory having a lower number of bits per cell could have a lowerread error rate threshold value than flash memory having a greaternumber of bits per cell. By cooperating with the mapping unit 208 andthe tracking unit 206, the wear level agent 204 can determine whether anobserved read error rate indicates excessive wear in a given page orblock of a specific type of flash memory, in which case the data couldbe moved to a differing block in the same type of flash memory, orwhether the observed read error rate is consistent with that type offlash memory and indicates the data should be relocated to a type offlash memory having a generally lower read error rate. Suchdetermination could take into account one or more static properties ofthe data, as well as one or more dynamic properties of the data, andcorresponding policies. The wear level agent 204 could apply thresholdsthat differ from thresholds applied by the mapping unit 208, in theabove and other scenarios. Thresholds could apply to time, or to numbersof operations in some embodiments. For example a read error rate andcorresponding threshold value could apply to a number of read errors pertotal number of reads, or a number of read errors over a length of time.Thresholds and rates can be implemented as parameters in someembodiments.

FIG. 3 is a system diagram showing a tracking unit 206 and a mappingunit 208 in an embodiment of the flash manager 130 of FIG. 2. Thetracking unit 206 tracks various properties of the data. In someembodiments, some or all of the properties are indicated in metadata316. For example, a first type of property is observable upon arrival ofthe data. The tracking unit 206 could determine a file type or an objecttype of the data, and write this information into the metadata 316. Anoperating system or other portion of the enterprise computing system 102could send along metadata with the file or the data, and this metadatacould be written into the metadata 316 in the tracking unit 206 in someembodiments. Metadata 316 could indicate whether data is, includes atleast a portion of, or is included in a text file, an operating systemfile, an image file, e.g. photographs, video or movies, a temporaryfile, an archive file, backup data, deduplicated backup data, and so on.Metadata 316 could indicate a read count of the data, a write count ofthe data, an error count of reads of the data, a count of a number ofdiscards of the data during deduplication, a time interval from when thedata was written, and so on.

A second type of property is observable over time, after the arrival ofthe data. For example, the tracking unit 206 of FIG. 3 could keep trackof the number of times data is read, written to, or produces errors,and/or time intervals over which these events occur. Counters and timerscould be implemented in hardware, firmware or software, or a singletimer or a single counter could be used and count values or time valuescould be written into memory locations, for example in the metadata 316.In the embodiment shown, the tracking unit 206 has read counters 302,304 (e.g., read counter 1 through read counter N), for counting thenumber of times a data page, a data block or other amount of data isread. The tracking unit 206 has write counters 306, 308 (e.g., writecounter 1 through write counter N), for counting the number of times adata page, a data block or other amount of data is written to. Thetracking unit 206 has error correction code (ECC) counters 310, 312(e.g., ECC counter 1 through ECC counter N), for counting the number oftimes a data page, a data block or other amount of data produces anerror during a read, where the error is corrected through application ofan error correction code. The tracking unit 206 has a timer 314, fortiming intervals. For example, the timer 314 could be applied toestablish the beginning and end of a time interval, during which timeinterval reads, writes or errors are counted to determine a read rate, awrite rate or an error rate. The determined read rate, write rate, orerror rate can then be recorded in the metadata 316, and used forcomparison with a read rate threshold, a write rate threshold, or anerror rate threshold. As a further use, the timer 314 could be appliedto measure an interval between reads, an interval between writes, or atime interval establishing how long data has resided at a specifiedlocation in memory.

In the mapping unit 208, a memory location planner 334, data placementpolicies 326, and a memory mapper 332 cooperate, to place incoming dataand/or relocate data, in accordance with properties of the data.Planning for where to locate data, i.e., in which of the types of flashmemory 210, 212, 214 to place or relocate the data, is handled by thememory location planner 334, in accordance with the properties of thedata, from the tracking unit 206, and the data placement policies 326.Data placement policies 326 include incoming data placement policies328, and relocation data placement policies 330. The memory mapper 332keeps track of where the data is placed, whether initially or throughrelocation, by maintaining a map between logical addresses and physicaladdresses of the data.

In the embodiment shown in FIG. 3, the memory location planner 334includes an execution FIFO (first in first out) 318, a map unit 320, acopy unit 322, and a release unit 324. In various embodiments, thememory location planner 334 could be event driven, responding to thearrival of incoming data or notifications from the tracking unit 206,could be polling-based, conducting polls and responding to results ofthe polls, could be sequentially scanning through the flash memory orthrough the metadata 316, or could proceed in some other mannerconsistent with the teachings herein. For purposes of illustration,examples of incoming data and data to be relocated are discussed belowto further illustrate embodiments. Following these example illustrationsand discussions, the data placement policies 326 will be furtherdiscussed, with numerous examples thereof.

Referring to FIGS. 2 and 3, the memory location planner 334 looks atfirst properties or static properties of incoming data, i.e., thoseproperties of the data that are observable upon arrival of the data.Static properties are unchanging over the lifespan of the data, e.g., anoperating system file is always an operating system file, an image filealways has at least one image, a text file is always text. It should beappreciated that any exceptions to this could be handled by exceptionpolicies. The memory location planner 334 consults with the incomingdata placement policies 328, which could include instructions ordirections as to which type of flash memory 210, 212, 214 (see FIG. 2)to write data having a specified property or properties upon arrival.Next, the memory location planner 334 determines which physical addressor addresses are available in the determined type of flash memory 210,212, 214, by applying the map unit 320 in coordination with the memorymapper 332. The memory location planner 334 then places the determinedphysical address or addresses in the execution FIFO 318. In someembodiments, the incoming data is placed into the execution FIFO 318along with the address or addresses to which the data will be written.In other embodiments, the incoming data is placed into a separate dataFIFO, as readily devised. Further mechanisms for temporarily holding thedata are readily apparent. The execution FIFO 318 writes the data to theaddress in the selected type of flash memory 210, 212, 214, in the orderin which the direction to so write is received, i.e., first-infirst-out. The memory mapper 332 tracks these data writes, updating amap of logical addresses and physical addresses accordingly. Memorymapping, via the memory mapper 332, is applied whenever data is writtento or read from the flash storage 128, e.g., when an I/O operation isrequested on the storage resources and the flash storage 128, by acomponent in the enterprise computing system of FIG. 1, or when themapping unit 208 initially locates or later relocates data. In someembodiments, the I/O operation specifies a logical address for the databeing requested, and the memory mapper would find the physical address,i.e., where the data is physically located in the flash memory 132.Other sequences for writing data, tracking where the data is written,mapping the data, and mechanisms for doing so, are readily devised inaccordance with the teachings disclosed herein. In some embodiments, thedata is placed directly, and an execution FIFO 318 is optional. In someembodiments, the execution FIFO 318 is replaced by another type ofscheduling device such as a stack or a queue.

With the data to be relocated, the memory location planner 334 looks atsecond properties or dynamic properties of the data, i.e., thoseproperties of the data that are tracked over time by the tracking unit206. Dynamic properties may change over the lifespan of the data, e.g.,a file may be read more times or fewer times over an interval or alifespan, data may have fewer errors or more errors during reads over aninterval or a lifespan, data may be written to a specified address moreoften or less often or more times or fewer times over an interval or alifespan, and so on. The memory location planner 334 consults with therelocation data placement policies 330, which could include instructionsor directions as to which type of flash memory 210, 212, 214 to writedata having a specified property or properties determined after arrivalof the data, and could include parameter values such as thresholds to beapplied to the properties as tests. Next, the memory location planner334 determines which physical address or addresses are available in thedetermined type of flash memory 210, 212, 214, by applying the map unit320 in coordination with the memory mapper 332. The memory locationplanner 334 then places the determined physical address or addresses inthe execution FIFO 318. The execution FIFO 318 copies the data from thecurrent address to the new address in the selected type of flash memory210, 212, 214, in the order in which the direction to so write isreceived, i.e., first-in first-out. This action happens via the copyunit 322, which also verifies that the data was written correctly priorto releasing the earlier address via the release unit 324. Differencesbetween placing arriving data and relocating data could be handled bysetting a flag in the execution FIFO 318 or through other mechanisms asreadily devised. In some embodiments, the data is relocated directly,and an execution FIFO 318 is not needed. The memory mapper 332 tracksthe data writes, updating a map of logical addresses and physicaladdresses accordingly. In some embodiments, additional layers of memorymapping and addresses are applied.

As mentioned above with regard to FIG. 3, the data placement policies326 include incoming data placement policies 328 and relocation dataplacement policies 330, in some embodiments. In further embodiments, thedata placement policies 326 are combined, not separate. In someembodiments, the incoming data placement policies 328 moderate or evenoverride some or all of the relocation data placement policies 330 insome circumstances as discussed below. It should be appreciated that thedata placement policies 326 are not limited to the examples describedherein, and further data placement policies 326 can be developed andapplied in further embodiments. Particularly, policies could apply ratesin place of counts, or counts in place of rates, or could apply both. Itshould be further appreciated that data placement policies 326 applyingto types of flash memory with differing numbers of levels per cell maybe interpreted as or have corresponding data placement policies applyingto types of flash memory with differing characteristics relative todata, and vice versa.

One policy is writing text data to a type of flash memory having a lowerread error rate and writing image data to a type of flash memory havinga higher read error rate. This policy could be interpreted as, orreplaced by a policy of writing text data to a type of flash memoryhaving a lower number of bits per cell and writing image data to a typeof flash memory having a higher number of bits per cell. This policycould also be written as two policies, one for text data and one forimage data.

Another policy is writing data having a number of discards duringdeduplication, which number of discards meets a deduplication thresholdvalue, to the type of flash memory having the lower read error rate. Forexample, a backup run employing deduplication could encounter a largenumber of duplicate blocks of data. One copy of such a block of datacould be written to the type of flash or nonvolatile memory having thelower read error rate, and the large number of duplicate blocks couldthen be discarded, as an action of deduplication. It should beappreciated that if k copies of the same block of data were removed, onemight expect that block of data to be read at a rate k times higher than“normal.” This policy could be interpreted as, or replaced by a policyof writing data having a number of discards during deduplication,meeting a deduplication threshold value, to the type of flash memoryhaving the lower number of bits per cell. Data that has a high number ofdiscards during deduplication, e.g., during a backup operation withdeduplication, is likely to have a high number of reads during a restoreoperation. Accordingly, placing such data in the type of flash memorywith the lower read error rate is consistent with the data being readmore frequently or a larger total number of times.

Yet another policy is placing data in the type of flash memory havingthe higher read error rate in response to the data having a singleinstance during deduplication. Data that has only a single instance,i.e., data that does not have discards during a backup operation withdeduplication, is likely to be read only once during a restoreoperation. Thus, placing such data in the type of flash memory with ahigher read error rate may still be safe, considering that the data willnot be read frequently or a large number of times.

The data placement policies may include a policy to move data from thetype of flash memory having the higher read error rate to the type offlash memory having the lower read error rate in response to the datahaving a cumulative number of read errors exceeding a read errorthreshold value. This policy could be interpreted as, or replaced by apolicy of moving data from the type of flash memory having the highernumber of bits per cell to the type of flash memory having the lowernumber of bits per cell in response to the data having a cumulativenumber of read errors exceeding a read error threshold.

Another policy is moving data from the type of flash memory having thehigher read error rate to the type of flash memory having the lower readerror rate in response to the data having a rate of read errorsexceeding a read error rate threshold value. This policy could beinterpreted as, or replaced by a policy of moving data from the type offlash memory having the higher number of bits per cell to the type offlash memory having the lower number of bits per cell in response to thedata having a rate of read errors exceeding a read error rate threshold.

One policy is moving data from a type of flash memory having a lowerread cycle endurance to a type of flash memory having a higher readcycle endurance in response to the data having a cumulative number ofreads exceeding a read count threshold value. This policy could beinterpreted as, or replaced by a policy of moving data from the type offlash memory having the higher number of bits per cell to the type offlash memory having the lower number of bits per cell in response to thedata having a cumulative number of reads exceeding a read countthreshold.

Another data placement policy includes a policy to move data from thetype of flash memory having the higher read error rate to the type offlash memory having the lower read error rate in response to the datahaving a read rate exceeding a read rate threshold. This policy could beinterpreted as, or replaced by a policy of moving data from the type offlash memory having the higher number of bits per cell to the type offlash memory having the lower number of bits per cell in response to thedata having a read rate exceeding a read red threshold value.

One policy is moving data from a type of flash memory having a lowerwrite cycle endurance to a type of flash memory having a higher writecycle endurance in response to the data having a cumulative number ofwrites exceeding a write count threshold value. This policy could beinterpreted as, or replaced by a policy of moving data from the type offlash memory having the higher number of bits per cell to the type offlash memory having the lower number of bits per cell in response to thedata having a cumulative number of writes exceeding a write countthreshold value. This write count threshold value could match the writelimit (i.e., the write cycle endurance) published by a manufacturer of agiven type of flash memory, or could be set at some other value, e.g.,conservatively lower.

One policy is moving data from the type of flash memory having the lowerwrite cycle endurance to the type of flash memory having the higherwrite cycle endurance in response to the data having a write rateexceeding a write rate threshold value. This policy could be interpretedas, or replaced by a policy of moving data from the type of flash memoryhaving the higher number of bits per cell to the type of flash memoryhaving the lower number of bits per cell in response to the data havinga write rate exceeding a write rate threshold value.

One policy is moving data from a type of flash memory having a lowerretention time to a type of flash memory having a higher retention timein response to a data residence time of the data exceeding a residencetime threshold value. This policy could be interpreted as, or replacedby a policy of moving data from the type of flash memory having thehigher number of bits per cell to the type of flash memory having thelower number of bits per cell in response to a data residence time ofthe data exceeding a residence time threshold value.

FIGS. 4A-4F are flow diagrams showing various methods for managing flashmemory, which can be practiced on or by embodiments of the enterprisecomputing system 102, the flash storage 128, and the flash manager 130of FIGS. 1-3, or the computing device of FIG. 5. It should beappreciated that further embodiments combine portions from one or moreof these flow diagrams, in accordance with the teachings disclosedherein. For example, one embodiment of the method includes portions ofthe flow diagrams shown in FIGS. 4B-4D implementing portions of the flowdiagram shown in FIG. 4A.

FIG. 4A is a flow diagram showing a method for managing flash memory.The method applies properties of the data, and policies regardingproperties of the data, to direct placement of data and relocation ofdata into various types of flash memory. A property of incoming data isdetermined, in an action 402. For example, a determination could be madeas to whether the data includes an image, a temporary file, an operatingsystem file or a type of object, or whether the data is a singleinstance of data from deduplication or a multiple instance data fromdeduplication, etc.

Policies are consulted, in an action 404. For example, incoming dataplacement policies could be consulted. These policies could includeinstructions or directions as to which type of flash memory to writedata having particular properties. These policies could relate to dataproperties that are observable upon arrival of the data in someembodiments. Data is written to a type of flash memory in accordancewith the policies, in an action 406. For example, data having aparticular property could be written to a specified type of flash memoryin accordance with a policy directing to do so for such data.

Data is tracked in various types of flash memory, in an action 408. Forexample, data could be tracked in two or more types of flash memory.Tracking could include counting the number of reads of the data, thenumber of writes of the data, the number of errors during reads of thedata, establishing a time interval or window during which to count, andso on. Results from tracking could be written into the metadata, for usein comparison with the policies. Policies are consulted, in an action410. For example, relocation data placement policies as described abovecould be consulted. These policies could include instructions ordirections as to which type of flash memory to write data havingparticular properties based on tracking the data in the action 408.

Data is relocated to a type of flash memory in accordance with thepolicies, in an action 412. For example, the properties based ontracking, and the relocation data placement policies that are consulted,could lead to the decision to relocate the data to a particular type offlash memory, i.e., the decision of which type of flash memory to whichto relocate the data is based on the tracked properties and therelocation data placement policies. It should be appreciated that theabove-discussed method and variations thereof can be performedindependently of, without, or in cooperation with wear leveling and/orgarbage collection.

FIG. 4B is a flow diagram of a method for managing flash memory,applying a read rate threshold and a read count threshold. The methodshown in FIG. 4B applies a dynamic property of the data, namely a countof the number of times the data is read, and a policy relating to thedynamic property of the data and types of flash memory, to directplacement of the data into various types of flash memory. Reads of dataare counted in a first type of flash memory, during a time interval, inan action 420. For example, the tracking unit could dedicate a readcounter and a timer to track the number of reads and the time interval,recording results in the metadata.

In a decision action 422, a question is asked, is this the expiration ofthe time interval? If the answer is no, the time interval has notexpired, flow branches back to the action 420 to continue counting thereads of the data. If the answer is yes, the time interval has expired,the flow branches to the decision action 424. In the decision action424, a question is asked, is the read count over the entire timeinterval below a read rate threshold? For example, dividing the readcount by the time interval provides a read rate, which could be comparedto a predetermined read rate threshold associated with the type of flashmemory in which the data resides. If the answer is no, the read countover the entire time interval is not below the read rate threshold, theflow branches to the action 432 in order to relocate the data elsewherein the first type of flash memory, i.e., in the same type of flashmemory. Such an event could occur when the read rate of the data is toohigh, and there is concern that a read disturb error could occur.Relocating the data elsewhere in the same type of flash memory wouldstop or decrease the influence of the repeated reads on the neighboringcells of the original location of the data. This could be performed as afunction of wear leveling in some embodiments. If the answer is yes indecision action 424, the read count over the entire time interval isbelow the read rate threshold, flow branches to the action 426. In afurther embodiment, a decision could be made as to which type of flashto relocate to, based on a total read count, once a read rate has beenexceeded. For example, after action 424 where it has been determinedthat the read rate threshold has been exceeded, the method may determineif the read count threshold has been exceeded and then proceed todetermine the type of flash or nonvolatile memory to relocate the datato. In some embodiments, after action 424 where it has been determinedthat the read rate threshold has been exceeded, the method may determinethe type of flash or nonvolatile memory from a plurality of types offlash or nonvolatile memory and is not limited to a single second typeof flash or nonvolatile memory as FIG. 4B is one example and not meantto be limiting.

The data is relocated to a second type of flash, in the action 426. Thiscould occur because the data has a low read rate, and can be relocatedto a type of flash memory that is safe, i.e., unlikely to generate readdisturb errors, for a lower read rate in some embodiments. The reads ofdata in the second type of flash are counted, in an action 428. Forexample, the tracking unit could dedicate a read counter to counting thereads of the data. In a decision action 430, a question is asked, doesthe read count meet the read count threshold value for the second typeof flash memory? For example, the second type of flash memory could havea lower read count threshold value than the first type of flash memory,and the read count from the tracking unit is compared to this read countthreshold value. If the answer is no, the read count does not yet meetthe read count threshold value, the flow branches back to the action428, to continue counting reads of the data in the second type of flashmemory. If the answer is yes, the read count meets the read countthreshold, the flow branches to the action 432.

The data is relocated to the first type of flash memory, in the action432. This could occur because the data has been read a total number oftimes greater than is safe for reading data in the second type of flashmemory, and read errors (or excessive numbers of read errors) mightstart occurring if the data is not soon moved. In further embodiments,the write counts could be applied to independent pieces of data. Writerates could be applied in place of write counts, and vice versa.

FIG. 4C is a flow diagram of a method for managing flash memory,applying a write rate threshold and a write count threshold. The methodshown in FIG. 4C applies a dynamic property of the data, namely how manytimes the data is written, and a policy relating thereto, to directplacement of the data into various types of flash memory. Writes of thedata into a first type of flash memory are counted during a timeinterval, in an action 436. For example, the tracking unit coulddedicate a write counter and a timer to track the number of writes andthe time interval, recording results in the metadata. Some of the datacould be changing, and some of the data could be the same or unchanging,for example when a portion of a file is edited and the file is saved,and the counter could be tracking writes of data to a physical addressor a range of physical addresses in a type of flash memory (or trackingthe logical addresses with translation via the memory mapper).

A question is asked, in a decision action 438, is this the expiration ofthe time interval? If the answer is no, the time interval has notexpired, the flow branches back to the action 436, to continue countingthe writes of the data. If the answer is yes, the time interval hasexpired, the flow branches to the decision action 440. In the decisionaction 440, the question is asked, is the write count over the entiretime interval below the write rate threshold value? For example,dividing the write count by the time interval provides a write rate,which could be compared to a predetermined write rate thresholdassociated with the type of flash memory in which the data resides. Ifthe answer is no, the write count over the entire time interval is notbelow the write rate threshold value, the flow branches to the action448 in order to relocate the data elsewhere in the first type of flashmemory, i.e., in the same type of flash memory. Such an event couldoccur when the write rate of the data is too high, and there is concernthat a write disturb error could occur. Relocating the data elsewhere inthe same type of flash memory would stop or decrease the influence ofthe repeated writes on the neighboring cells of the original location ofthe data. This could be performed as a function of wear leveling in someembodiments. If the answer is yes in decision action 440, the writecount over the entire time interval is below the write rate threshold,flow branches to the action 442.

The data is relocated to a second type of flash, in the action 442. Thiscould occur because the data has a low write rate, and can be relocatedto a type of flash memory that is safe, i.e., unlikely to generate writedisturb errors, for a lower write rate. The writes of the data in thesecond type of flash memory are counted, in an action 444. For example,the tracking unit could dedicate a write counter to counting the writesof the data.

A question is asked, in a decision action 446, does the write count meetthe write count threshold value for the second type of flash memory? Forexample, the second type of flash memory could have a lower write countthreshold value than the first type of flash memory, and the write countfrom the tracking unit is compared to this write count threshold value.If the answer is no, the write count does not yet meet the write countthreshold value, the flow branches back to the action 444, to continuecounting writes of the data in the second type of flash. If the answeris yes, the write count does meet the write count threshold value, flowbranches to the action 448. In the action 448, the data is relocated tothe first type of flash. This could occur because the data has beenwritten a total number of times greater than is safe for writing data inthe second type of flash memory, and write disturb errors might startoccurring if the data is not soon moved.

FIG. 4D is a flow diagram of a method for managing flash memory,applying an error count threshold and an error rate threshold. Themethod shown in FIG. 4D applies a dynamic property of the data, namely acount of the read errors, and a policy relating thereto, to directplacement of the data into various types of flash memory. In furtherembodiments, just the error count threshold or just the error ratethreshold could be applied. An error count threshold could apply to acumulative count of errors, or to an instantaneous error correction,e.g., of more than a specified number of bits in a data read in someembodiments. Read errors of data in the second type of flash memory arecounted during a time interval, in an action 450. For example, thetracking unit could dedicate an error correction code counter and atimer, to count the time interval and the number of errors that occurredduring reads of data.

In a decision action 452, a question is asked, is this the expiration ofthe time interval? If the answer is no, the time interval has notexpired, the flow branches back to the action 450, to continue countingthe read errors during the time interval. If the answer is yes, the timeinterval has expired, the flow branches to the decision action 454. Inthe decision action 454 a question is asked, does the read error countover the entire time interval meet the read error rate threshold value?If the answer is yes, the read error count over the entire time intervalmeets the read error rate threshold value, the flow branches to theaction 460, in order to relocate the data to the first type of flash.This could occur because the read error rate is excessive, and the datais then moved to a type of flash memory having a lower read error rate.If the answer is no, the read error count over the entire time intervaldoes not yet meet the read error rate threshold value, the flow branchesto the action 456.

In the action 456, the count of the read errors of the data, in thesecond type of flash, continues. For example, even if a read error ratehas not been exceeded, the total number of reads could still be aconcern. Exceeding either a read error rate threshold value or a totalcount of reads threshold value could cause read errors to become morelikely. In a decision action 458 a question is asked, does the readerror count meet the read error count threshold for the second type offlash? If the answer is no, the read error count does not yet meet theread error count threshold value, the flow branches back to the action456, to continue counting the read errors. If the answer is yes, theread error count meets the read error count threshold value, the flowbranches to the action 460. The data is relocated to the first type offlash, in the action 460. This could occur because read errors arelikely to occur if further reads of the data in the second type of flashmemory are performed, and it is safer to move the data to a type offlash memory that has a lower read error rate.

FIG. 4E is a flow diagram of a method for managing flash memory,applying thresholds relating to properties of data and memory. Themethod shown in FIG. 4E applies a dynamic property of the data, namely aread error rate, and a policy relating thereto, to direct placement ofthe data into various types of flash memory. A read error rate of datain a type of flash memory is determined, in an action 466. This readerror rate could be determined by counting the number of read errors ofthe data over a span of time or over a variable or predetermined numberof reads, e.g., by dividing the number of read errors by the number ofreads on an ongoing basis or after a fixed number of reads. This wouldproduce a read error rate as a function of time or a read error rate asa function of the number of reads.

In a decision action 468, a question is asked, is the read error rateabove a threshold value for data having a particular static property?For example, the data could have the static property of being a portionof an operating system file, or a portion of an image file, and varioustypes of data might have differing thresholds for a read error rate. Ifthe answer is no, the read error rate is not above the threshold value,the flow branches back to the action 466, so that the read error ratecan be monitored further. If the answer is yes, the read error rate isabove the threshold value, the flow branches to the decision action 470.

In the decision action 470, a question is asked, is the read error rateabove the threshold value for this type of flash memory? For example,various types of flash memory may have differing read error rates, sothat differing read error rate thresholds are established for thevarious types of flash memory. A read error rate that is greater than aread error rate threshold value, for a type of flash memory, mayindicate that the page or block in the flash memory is experiencing wearfrom a large number of reads or writes, and is producing errors morefrequently as a result. If the answer is yes, the read error rate isabove the threshold value for this type of flash memory, the flowbranches to the action 472, to relocate the data elsewhere in the sametype of flash memory. It should be appreciated that this relocation ofthe data could be part of a wear leveling process. If the answer is no,the read error rate is not above the threshold value for this type offlash memory, the flow branches to the action 474, to relocate the datato a type of flash memory having a lower read error rate. This couldoccur because the type of flash memory in which the read error rate isobserved is not wearing out, but is nonetheless producing errors toogreat a rate for this particular data, i.e., the read error rate isexceeding the threshold for data with this static property as discussedabove. It should be appreciated that the flow diagram of FIG. 4Eprovides an example of an interaction between a dynamic property of dataand a static property of data, in decisions as to where in various typesof flash memory to locate the data.

FIG. 4F is a flow diagram of a method for managing flash memory,applying differing error correction thresholds for data verification andlong-term reads. The method shown in FIG. 4F applies a dynamic propertyof the data, namely a rate of error correction and a policy relatingthereto, to direct placement of the data into various types of flashmemory. Data is written to a second type of flash memory, in an action480. For example, the second type of flash memory could be a type thathas an intermediate error rate as compared to a first type of flashmemory having a lower error rate.

After the data is written to the second type of flash memory, the datais verified. During data verification, a rate of error correction isdetermined, in an action 482. For example, the tracking unit could countthe number of times during reads of the data an error is corrected usingerror correction code and tracking this number using one of the errorcorrection code counters. This could be performed as a sequence of databytes is read out from the second type of flash memory, duringverification of the data, and each time an error occurs the errorcorrection code counter is incremented. The total number of errorcorrections could then be divided by the total number of bytes (or wordsor other lengths of data) read out, to determine the error correctionrate. In a decision action 484, a question is asked, is the rate oferror correction below a first error correction threshold value? Forexample, the first error correction threshold value could be a dataverification error correction threshold value. If the answer is yes, theflow branches to the action 488 for long-term monitoring of the data. Ifthe answer is no, the flow branches to the action 486.

In the action 486, the data is relocated elsewhere in the second type offlash memory. This could occur because the verification showed a greaternumber of errors, i.e., a greater rate of error correction than shouldbe the case for the second type of flash memory if not experiencingwear. The conclusion would be that the particular page or block in thesecond type of flash memory may be experiencing wear from excessivereads or writes, and is therefore producing excess errors even upon afirst write of new data and verification of this data. The data is thenrelocated as a consequence, and the rate of error correction is againtested to see whether this new location in the second type of flashmemory is or is not experiencing wear. After the action 486, the flowbranches back to the action 482, in order to check the rate of errorcorrection in the new location.

In the action 488, long-term monitoring of the data commences, and arate of error correction during subsequent reads of the data isdetermined. In a decision action 490, a question is asked, is the rateof error correction below a second error correction threshold value? Forexample, the second error correction threshold value could be along-term error correction threshold value, which differs from theverification error correction threshold value. Particularly, thelong-term error correction threshold value could be equal to, lesserthan, or greater than the verification error correction threshold value.If the answer is yes, the rate of error correction is below the seconderror correction threshold value, the flow branches back to the action488, for ongoing monitoring of the rate of error correction. If theanswer is no, the rate of error correction is not below the second errorcorrection threshold value, the flow branches to the action 492, torelocate the data to the first type of flash memory. This could occurbecause, even though data location in the second type of flash memoryinitially verified without errors or with an acceptable low number oferrors, subsequent reads have generated wear, and it is advisable torelocate the data to a type of flash memory that has a lower error rate.Alternatively, the relocation of the data could be advisable because thedata is experiencing a higher number of reads, which are generating theexcess errors as a result of read disturbs or wear. The method shown inFIG. 4F could be applied as part of data verification and monitoring, orwear leveling or both. It should be appreciated that each of FIGS. 4A-Finclude a loop back from the final method operation to the initialmethod operation as the data may change or evolve over time and themethods described herein may monitor these changes by repeating asneeded.

It should be appreciated that further embodiments of the method arereadily developed to address location of data in various types of flashmemory in accordance with properties of the data, and that theseproperties can include static properties or dynamic properties. In someembodiments, a policy can combine two or more measurements, or two ormore policies can be enacted or combined. For example, a high read errorrate combined with a high read rate could result in moving data to alower error-rate flash or nonvolatile memory, or application of a moreadvanced error correction mechanism on a less reliable flash ornonvolatile memory memory. Data could be placed in a type of nonvolatilememory according to an intended residence time of the data in that typeof nonvolatile memory. The intended residence time could be based on thefile type, an object type or an object identifier. Later, the data couldbe moved to another type of nonvolatile memory if the data has residedlonger than the intended residence time, which could act as a threshold.As a further example, a combination of a high number of reads and a lownumber of writes to a particular location could result in moving datainto a flash memory with a high read endurance but a low write cycleendurance. Various mechanisms for tracking or deriving the dynamicproperties of the data are readily developed in accordance with theteachings herein. In embodiments related thereto, at least one dynamicproperty of the data, and at least one policy relating the dynamicproperty to the various types of flash memory, are applied to thedecision(s) as to where to place or relocate the data, i.e., thedecision or decisions as to which type of flash memory to write or placethe data into. Various mechanisms for determining the static propertiesof the data are readily developed in accordance with the teachingsherein. In embodiments related thereto, at least one static property ofthe data, and at least one policy relating the static property of thedata to the various types of flash memory, are applied to thedecision(s) as to where to write or place the data. Embodiments of themethod can be applied to flash memories having two or more types offlash memory, and parameters, thresholds, properties, and policiesrelating to two types, three types, four types, five types or more offlash memory are readily devised in accordance with the teachingsherein.

It should be appreciated that the methods described herein may beperformed with a digital processing system, such as a conventional,general-purpose computer system. Special purpose computers, which aredesigned or programmed to perform only one function may be used in thealternative. FIG. 5 is an illustration showing an exemplary computingdevice which may implement the embodiments described herein. Thecomputing device of FIG. 5 may be used to perform embodiments of thefunctionality for managing various types of flash memory, or managingother types of memory, in accordance with various embodiments. Thecomputing device includes a central processing unit (CPU) 501, which iscoupled through a bus 505 to a memory 503, and mass storage device 507.Mass storage device 507 represents a persistent data storage device suchas a disc drive, which may be local or remote in some embodiments. Themass storage device 507 could implement a backup storage, in someembodiments. Memory 503 may include read only memory, random accessmemory, etc. Applications resident on the computing device may be storedon or accessed via a computer readable medium such as memory 503 or massstorage device 507 in some embodiments. Applications may also be in theform of modulated electronic signals modulated accessed via a networkmodem or other network interface of the computing device. It should beappreciated that CPU 501 may be embodied in a general-purpose processor,a special purpose processor, or a specially programmed logic device insome embodiments. It should be further appreciated that the computingdevice may include well-known components such as one or more counters513, timers 515, or communication ports 517. One or more of thecommunication ports 517 could be connected to a network 519.

Display 511 is in communication with CPU 501, memory 503, and massstorage device 507, through bus 505. Display 511 is configured todisplay any visualization tools or reports associated with the systemdescribed herein. Input/output device 509 is coupled to bus 505 in orderto communicate information in command selections to CPU 501. It shouldbe appreciated that data to and from external devices may becommunicated through the input/output device 509. CPU 501 can be definedto execute the functionality described herein to enable thefunctionality described with reference to FIGS. 1-4. The code embodyingthis functionality may be stored within memory 503 or mass storagedevice 507 for execution by a processor such as CPU 501 in someembodiments. The operating system on the computing device may beMS-WINDOWS™, UNIX™, LINUX™, iOS™, CentOS™, Android™, Redhat Linux™,z/OS™, EMC ISILON ONEFS™, DATA ONTAP™ or other known operating systems.It should be appreciated that the embodiments described herein may beintegrated with virtualized computing system also.

Embodiments of the flash storage, flash manager and flash memory can bescaled for large business, small business, consumer and otherenvironments, and for products from the size of server farms (andlarger) down to consumer products. Such products could includesolid-state drives, combination hard drive/solid-state drives, memorycards for business computing environments, personal computers, orstorage devices, USB devices, touch tablets, integrated circuits orintegrated circuit sets for personal computing devices from desktop tohandheld to pocket-sized or smaller. One product for which an embodimentis suitable is a personal digital assistant (PDA), with computing andcellular telephonic capabilities. The flash memory could be placed on asingle integrated circuit with multiple types of flash memory. Infurther embodiments, the flash memory, of multiple types, could beimplemented in a single device, board, box, drive, or appliance, e.g., anetwork-attachable storage, or scaled up to an enterprise memorystorage. In one embodiment, the flash memory is on one or moreintegrated circuits, and the flash manager is on one or more integratedcircuits, and these could be in separate packages or in a multichippackage. In one embodiment, the flash memory and the flash manager arecombined on a single integrated circuit. In another embodiment, thissingle integrated circuit, or multiple integrated circuits, could beimplemented in a mobile form factor, such as a thumb drive, or a productwith a smaller form factor such as or comparable to CompactFlash, oreven smaller.

Many embodiments, as disclosed herein, place or relocate data in varioustypes of flash memory regardless of the read access time of the flashmemory. In many embodiments, placement or relocation of data in varioustypes of flash memory is independent of data access time requirementsfor the data. In some embodiments, the read access times of multipletypes of flash memory therein are approximately the same, so that readperformance (as to access time) of the flash storage is relativelyunaffected by which type of flash memory is being read for access to agiven data. It should be appreciated that in some of the embodimentsdescribed herein a single copy of the data is in the system at a timepoint, unlike caching systems which have multiple copies of the data inthe storage memory. However, such embodiments could also be used asstorage memory in a caching system.

Embodiments can be directed to a single property of data, which could bea static property or a dynamic property. Embodiments can be directed tomultiple properties of data, which could be static properties, dynamicproperties, or both. Embodiments can be directed to a single policy,which relates to one or more static properties of data, one or moredynamic properties of data, or both, or to multiple policies. Decisionscan be based on multiple factors, e.g., a small number of writes and alarge number of reads. Embodiments can be directed to multiple types offlash memory having differing numbers of levels/bits per cell, ordiffering qualities relating to data, or both. For example, differenttypes of flash memory could be optimized for read endurance (number ofread cycles) and/or read retention (length of time to retain data), atvarious trade-offs of lower write endurance and/or erase cycleendurance, and policies could be developed accordingly. Different typesof flash memory could have the same number of bits per cell butdiffering properties. For example, two types of flash with the samenumber of bits per cell could be differentiated by having differingretention times, differing numbers of program and erase cycles, or othercharacteristics. In some embodiments, the number of program and erasecycles may be further defined based on the type of environment, e.g., anenterprise environment vs. a non-enterprise environment.

Further embodiments of the methods and devices disclosed herein aredirected to other forms of memory, for instance phase change memory andother non-flash types of nonvolatile memory. Where another form ofmemory has multiple types and trade-offs relative to data properties inthose multiple types, but unrelated to read access times, the teachingsdisclosed herein may be applicable to that form of memory. Embodimentscould include multiple types of memory but exclude flash, or couldinclude flash and one or more other types of memory, or two or moretypes of flash and one or more other types of memory, and so on. Itshould be appreciated that the embodiments may be extended to volatilememory types as well as nonvolatile memory types, and in someembodiments, combinations of volatile and nonvolatile memory types.

Detailed illustrative embodiments are disclosed herein. However,specific functional details disclosed herein are merely representativefor purposes of describing embodiments. Embodiments may, however, beembodied in many alternate forms and should not be construed as limitedto only the embodiments set forth herein.

It should be understood that although the terms first, second, etc. maybe used herein to describe various steps or calculations, these steps orcalculations should not be limited by these terms. These terms are onlyused to distinguish one step or calculation from another. For example, afirst calculation could be termed a second calculation, and, similarly,a second step could be termed a first step, without departing from thescope of this disclosure. As used herein, the term “and/or” and the “/”symbol includes any and all combinations of one or more of theassociated listed items.

As used herein, the singular forms “a”, “an” and “the” are intended toinclude the plural forms as well, unless the context clearly indicatesotherwise. It will be further understood that the terms “comprises”,“comprising”, “includes”, and/or “including”, when used herein, specifythe presence of stated features, integers, steps, operations, elements,and/or components, but do not preclude the presence or addition of oneor more other features, integers, steps, operations, elements,components, and/or groups thereof. Therefore, the terminology usedherein is for the purpose of describing particular embodiments only andis not intended to be limiting.

It should also be noted that in some alternative implementations, thefunctions/acts noted may occur out of the order noted in the figures.For example, two figures shown in succession may in fact be executedsubstantially concurrently or may sometimes be executed in the reverseorder, depending upon the functionality/acts involved.

With the above embodiments in mind, it should be understood that theembodiments might employ various computer-implemented operationsinvolving data stored in computer systems. These operations are thoserequiring physical manipulation of physical quantities. Usually, thoughnot necessarily, these quantities take the form of electrical ormagnetic signals capable of being stored, transferred, combined,compared, and otherwise manipulated. Further, the manipulationsperformed are often referred to in terms, such as producing,identifying, determining, or comparing. Any of the operations describedherein that form part of the embodiments are useful machine operations.The embodiments also relate to a device or an apparatus for performingthese operations. The apparatus can be specially constructed for therequired purpose, or the apparatus can be a general-purpose computerselectively activated or configured by a computer program stored in thecomputer. In particular, various general-purpose machines can be usedwith computer programs written in accordance with the teachings herein,or it may be more convenient to construct a more specialized apparatusto perform the required operations.

A module, an application, a layer, an agent or other method-operableentity could be implemented as hardware, firmware, or a processorexecuting software, or combinations thereof. It should be appreciatedthat, where a software-based embodiment is disclosed herein, thesoftware can be embodied in a physical machine such as a controller. Forexample, a controller could include a first module and a second moduleand the controller could be configured to perform various actions, e.g.,of a method, an application, a layer or an agent.

The embodiments can also be embodied as computer readable code on acomputer readable medium. The computer readable medium is any datastorage device that can store data, which can be thereafter read by acomputer system. Examples of the computer readable medium include harddrives, network attached storage (NAS), read-only memory, random-accessmemory, CD-ROMs, CD-Rs, CD-RWs, magnetic tapes, and other optical andnon-optical data storage devices. The computer readable medium can alsobe distributed over a network coupled computer system so that thecomputer readable code is stored and executed in a distributed fashion.Embodiments described herein may be practiced with various computersystem configurations including hand-held devices, tablets,microprocessor systems, microprocessor-based or programmable consumerelectronics, minicomputers, mainframe computers and the like. Theembodiments can also be practiced in distributed computing environmentswhere tasks are performed by remote processing devices that are linkedthrough a wire-based or wireless network.

Although the method operations were described in a specific order, itshould be understood that other operations may be performed in betweendescribed operations, described operations may be adjusted so that theyoccur at slightly different times or the described operations may bedistributed in a system which allows the occurrence of the processingoperations at various intervals associated with the processing.

The foregoing description, for the purpose of explanation, has beendescribed with reference to specific embodiments. However, theillustrative discussions above are not intended to be exhaustive or tolimit the invention to the precise forms disclosed. Many modificationsand variations are possible in view of the above teachings. Theembodiments were chosen and described in order to best explain theprinciples of the embodiments and its practical applications, to therebyenable others skilled in the art to best utilize the embodiments andvarious modifications as may be suited to the particular usecontemplated. Accordingly, the present embodiments are to be consideredas illustrative and not restrictive, and the invention is not to belimited to the details given herein, but may be modified within thescope and equivalents of the appended claims.

What is claimed is:
 1. A processor-based method for managing nonvolatilememory, comprising: writing first data to a first type of flash memory,responsive to identifying that the first data is image data as a staticproperty of the first data; writing second data to a second type offlash memory having a lower error rate than the first type of flashmemory, responsive to identifying that the second data is text data as astatic property of the second data; determining an error count or errorrate during verification of the image or text data as a dynamic propertyof the image or text data; and moving the image or text data to adiffering location or differing type of flash memory, responsive to avalue of the error count or the error rate representing the dynamicproperty exceeding a threshold, wherein the image data is associatedwith a first threshold error count or error rate that is independent ofthreshold error counts or error rates for other types of data written tothe first type of flash memory, and the text data is associated with asecond, differing threshold error count or error rate that isindependent of threshold error counts or error rates for other types ofdata written to the second type of flash memory.
 2. The method of claim1, wherein the moving occurs during a garbage collection process.
 3. Themethod of claim 1, wherein the value representing the dynamic propertyindicates a type of flash memory to move the data into.
 4. The method ofclaim 1, further comprising: identifying static properties of data basedon a file type, an object type or an object identifier associated withthe data.
 5. The method of claim 1, wherein the dynamic property isselected from a group consisting of read error rate, read cycleendurance, write cycle endurance, and retention time.
 6. The method ofclaim 1, wherein: the dynamic property is a data residence time; andmoving the first or second data is responsive to the data residence timeof the first or second data exceeding a data residence time threshold ofthe first or second type of nonvolatile memory.
 7. The method of claim1, wherein the identifying static properties of the first or second datais based on metadata associated with the first or second data.
 8. Anonvolatile memory manager, comprising: a processor-equipped mappingunit configured to place a first data into a first type of flash memoryas a result of identifying that the first data is image data as a staticproperty of the first data, configured to place a second data into asecond type of flash memory having a lower error rate than the firsttype of flash memory as a result of identifying that the second data istext data as a static property of the second data, and configured todetermine an error count or error rate during verification of the imageor text data as dynamic properties of the image or text data; and themapping unit further configured to relocate the image or text data toanother location in flash memory or type of flash memory, responsive toa determination that a value of the error count or the error raterepresenting the dynamic property exceeds a threshold, wherein the imagedata has a first threshold for error count or error rate that isindependent of threshold error counts or error rates for other types ofdata written to the first type of flash memory, and the text data has asecond, differing threshold for error count or error rate that isindependent of threshold error counts or error rates for other types ofdata written to the second type of flash memory.
 9. The nonvolatilememory manager of claim 8, wherein monitoring the dynamic propertiesincludes detecting that the first data has resided in a same location inthe first type of flash memory longer than a threshold of data retentiontime.
 10. The nonvolatile memory manager of claim 8, wherein the type offlash memory into which to place the first data is determined based uponmetadata associated with the first data.
 11. The nonvolatile memorymanager of claim 8, wherein the threshold is based on a file type, anobject type or an object identifier associated with the first data. 12.The nonvolatile memory manager of claim 8, wherein relocating the firstor second data occurs during a garbage collection process.
 13. Thenonvolatile memory manager of claim 8, further comprising: a dataplacement policies store configured to store one or more policiesrelating to incoming data and one or more properties of the incomingdata, wherein the mapping unit is configured to place the first datainto the first type of flash memory in accordance with the one or morepolicies.
 14. The nonvolatile memory manager of claim 8, furthercomprising: a memory mapper, configured to cooperate with the mappingunit to map logical addresses and physical addresses according toplacements and relocations of data.
 15. A memory, comprising: anonvolatile memory having a first type of flash memory and a second typeof flash memory that has a lower error rate than the first type of flashmemory; and a memory manager, having at least one processor configuredto perform actions including: writing first data to the first type offlash memory responsive to identifying that the first data is image dataas a static property of the first data; writing second data to thesecond type of flash memory responsive to identifying that the seconddata is text data as a static property of the second data; determiningan error count or error rate during verification of the image or textdata as a dynamic property of the image or text data; and moving theimage or text data to a differing location or differing type of flashmemory, responsive to a value of the error count or the error raterepresenting the dynamic property exceeding a threshold, wherein theimage data and the text data have differing thresholds for the errorcount or the error rate based on the image data and the text data beingdiffering types of data and the differing thresholds are independent ofthreshold error counts or error rates for other types of data written tothe first or second type of flash memory.
 16. The memory of claim 15,wherein the moving occurs during a garbage collection process.
 17. Thememory of claim 15, wherein the threshold is based on one from a groupconsisting of: file type, object type, and an object identifier.
 18. Thememory of claim 15, wherein for the monitoring and the moving, the atleast one processor is further configured to perform actions including:determining a data residence time of the first or second data in thefirst or second type of flash memory as the dynamic property; and movingthe first or second data to a third type of nonvolatile memory as thediffering location or differing type of flash memory, responsive to thedata residence time of the first or second data exceeding a dataresidence time threshold of the first or second type of nonvolatilememory.
 19. The memory of claim 15, wherein the value representing thedynamic property indicates a type of flash memory to move the first orsecond data into.
 20. The memory of claim 15, wherein the memory manageris configured to identify a data type of the first or second data anddetermine how long the first or second data resides, from metadataassociated with the first or second data.